<?php
/* @var $this \yii\web\View */
/* @var $dataProvider*/
?>
<div class="row">
    <div class="box">
        <?php
        echo \backend\components\grid\MyGridView::widget([
            'dataProvider' => $dataProvider,
            'columns' => [
                'id',
                'title',
                [
                    'class'=>\yii\grid\ActionColumn::className(),
                    'header'=>'操作',
                    'template'=>'{accredit}',
                    'buttons'=>[
                        'accredit' => function ($url, $model, $key) {
                            return \yii\helpers\Html::a('<span class="am-icon-cog"></span>授权',$url,[
                                'class'=>'am-btn am-btn-default am-btn-xs am-text-secondary'
                            ]);
                        },
                    ]
                ]
            ]
        ])
        ?>
    </div>
</div>


